package headfirst.Handler;

/**
 * Created by lyk on 2018-1-23.
 * Package name: headfirst.Handler
 * Porject name: untitled1
 */

public class Client {

    public static void main(String[] args) {
        //组装责任链
        Handler handler1 = new ConcreteHandler();
        Handler handler2 = new ConcreteHandler();
        handler1.setSuccessor(handler2);
        //提交请求
        handler1.handleRequest();
    }

}